import Https from "@/utils/Https";
import Https2 from "@/utils/Https2";

// export const loginReq = params => Https.post('/login', params, true)
export const loginReq = (params) => Https.post("/api/login", params, true);
export const loginByCodeReq = (params) =>
  Https.post("/loginByCode", params, true);

export const sendCodeReq = (params) =>
  Https.post(`/common/sendMsg/${params.phone}`, params, true);

//登录
export const operationLoginReq = (params) =>
  Https.post("/auth/tenant/login", params, true);

export const getImageCodeReq = (params) => Https2.get("/auth/code", params);

//重制密码
export const queryResetReq = (params) => Https.post("/auth/restpw", params);
